package com.gitee.wsl.transform.encode.pinyin.trie

/**
 * Container for a token ("the fragment") that can emit a type of payload.
 *
 *
 * This token indicates a matching search term was found, so [.isMatch]
 * always returns `true`.
 *
 *
 * @author Daniel Beck
 *
 * @param <T> The Type of the emitted payloads.
</T> */
class PayloadMatchToken<T>(fragment: String, override val emit: PayloadEmit<T>) : PayloadToken<T>(fragment) {
    override val isMatch: Boolean
        get() = true
}
